/*******************************************************************************
 * @(#)CrashExceptionUtils.java 2016年6月2日
 *
 * Copyright 2016 emrubik Group Ltd. All rights reserved.
 * EMRubik PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *******************************************************************************/
package com.inossem.utils.crashException;

import android.content.Context;

public class CrashExceptionUtils {
    /**
     * 初始化全局异常捕获
     * @author leij
     * @param context 上下文
     * @param crashExceptionResponse 异常捕获响应监听
     */
    public static void initCrashException(Context context,
            CrashExceptionResponse crashExceptionResponse) {
        CrashExceptionHandler ceh = CrashExceptionHandler.getInstance();
        ceh.init(context, crashExceptionResponse);
    }

    public interface CrashExceptionResponse {
        void onResponse(Context context);
    }
}
